# 鸡，兔30只，脚90只
for ck in range(31):
    for rb in range(31):
        if ck + rb == 30:
            if ck * 2 + rb * 4 == 90:
                print(ck, rb)
# 百元买百鸡
for bck in range(21):
    for wck in range(34):
        for sck in range(101):
            if bck + wck + sck == 100:
                if bck * 5 + wck * 3 + sck / 3 == 100:
                    if sck % 3 == 0:
                        print(bck, wck, sck)
# 水仙花数
for i in range(100, 1000):
    ge = i % 10
    shi = i // 10 % 10
    bai = i // 100 % 10
    if ge ** 3 + shi ** 3 + bai ** 3 == i:
        print(i)
